
{% extends 'base.html' %}
{% load static %}
{% block title %}界面{% endblock %}
{% block css %}
<link href="{% static 'login.css' %}" rel="stylesheet" />
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
        color: #333;
    }

    .container {
        margin-top : 60px;
        max-width: 800px;

        padding: 20px;
        background-color: #f9f9f9;
    }

    h1 {
        font-size: 24px;
        color: #555;
        margin-bottom: 20px;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    th,
    td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: center;
    }

    th {
        background-color: #f2f2f2;
        font-weight: bold;
    }

    tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    tr:hover {
        background-color: #e1e1e1;
    }

    a {
        display: block;
        margin-bottom: 10px;
        text-decoration: none;
        color: #0099ff;
    }
</style>
{% endblock %}

{% block content %}

<div class="container">
    <h1 style="text-align: center">日志查询页面</h1>



    <table>
        <tr>
            <th>日志ID</th>
            <th>日志类型</th>
            <th>发生时间</th>
            <th>源IP</th>
            <th>用户ID</th>
            <th>内容</th>
            <th>等级</th>
            <th>相关ID</th>
            <th>状态</th>
            <th>操作者</th>
            <th>操作时间</th>
        </tr>
        {% for efflog in efflog %}
        <tr>
            <td>{{ efflog.LogID }}</td>
            <td>{{ efflog.LogType }}</td>
            <td>{{ efflog.OccurTime}}</td>
            <td>{{ efflog.SourceIP}}</td>
            <td>{{ efflog.userID }}</td>
            <td>{{ efflog.Content }}</td>
            <td>{{ efflog.Level }}</td>
            <td>{{ efflog.RelatedID }}</td>
            <td>{{ efflog.Status }}</td>
            <td>{{ efflog.Handler }}</td>
            <td>{{ efflog.HandleTime }}</td>
        </tr>
        {% endfor %}
    </table>
</div>
{% endblock %}

